package com.trxy.hotelsystem.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.trxy.hotelsystem.dao.supermarketMapper;
import com.trxy.hotelsystem.model.supermarket;
import com.trxy.hotelsystem.service.SupermarketService;

@Service
public class SupermarketServiceImpl implements SupermarketService{
	
	@Autowired
	private supermarketMapper supermarketmapper;

	@Override
	public List<supermarket> querySupermarketAll() {
		// TODO Auto-generated method stub
		return supermarketmapper.querySupermarketAll();
	}



	@Override
	public int updateSupermarketByquantity(supermarket supermarket) {
		// TODO Auto-generated method stub
		return supermarketmapper.updateSupermarketByquantity(supermarket);
	}



	@Override
	public supermarket selectSupermarketById(supermarket supermarket) {
		// TODO Auto-generated method stub
		return supermarketmapper.selectSupermarketById(supermarket);
	}



	@Override
	public List<supermarket> selsectSupermarket(supermarket supermarket) {
		// TODO Auto-generated method stub
		return supermarketmapper.selsectSupermarket(supermarket);
	}



	@Override
	public int deleteSupermarketById(String id) {
		// TODO Auto-generated method stub
		return supermarketmapper.deleteSupermarketById(id);
	}



	@Override
	public int insertSupermarket(supermarket supermarket) {
		// TODO Auto-generated method stub
		return supermarketmapper.insertSelective(supermarket);
	}



}
